package com.hushao.aimi.service;

import com.hushao.aimi.common.ServerResponse;
import com.hushao.aimi.vo.RecommendVo;
import io.swagger.models.auth.In;
import org.springframework.data.domain.Pageable;

/**
 * @author 胡少
 */
public interface RecommendService {


    /**
     * 模糊查询商品推荐位（分页）
     * @param productCode
     * @param pageable
     * @return
     */
    ServerResponse listByProductCodeLike(String productCode, Pageable pageable);

    /**
     * 添加商品推荐位
     * @param recommendVo
     * @return
     * @throws Exception
     */
    ServerResponse addRecommend(RecommendVo recommendVo)throws Exception;


    /**
     * 删除商品推荐位
     * @param recommendId
     * @return
     * @throws Exception
     */
    ServerResponse delRecommend(Integer recommendId)throws Exception;

    /**
     * 修改推荐商品
     * @param recommendVo
     * @return
     * @throws Exception
     */
    ServerResponse updateRecommend(RecommendVo recommendVo)throws Exception;
}
